<!-- 1 脚本 -->
<script lang='ts' setup name='NotFound'>
import { ref, reactive } from 'vue';
import { useRouter } from 'vue-router';
const router = useRouter()

function toHome(){
    router.replace("/")
}
</script>


<!-- 2 模板 -->
<template>


    <div class="container">

        <div class="content">
            <div class="pic">
                <img src="@/assets/notfound.png" alt="">
            </div>
            <div class="info">
                <div class="oops">404错误!</div>
                <div class="headline">找不到网页！</div>
                <div class="alt">对不起，您正在寻找的页面不存在。尝试检查URL的错误，然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。 </div>
                <div class="btn">
                    <el-button type="primary" round @click="toHome">返回首页</el-button>

                </div>
            </div>
        </div>


    </div>



</template>


<!-- 3 样式 -->
<style scoped>
.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container .content {
    width: 900px;
    height: 400px;
    /* border: solid 1px red; */
    display: flex;
    justify-content: space-evenly;
}

.container .content .pic {
    height: 100%;
    width: 500px;
}

.container .content .pic img {
    /* height: 500px; */
    width: 700px;
}
.container .content .info {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly   ;
}

.container .content .info .oops{
    font-size: 32px;
    line-height: 40px;
    color: #1482f0;
    margin-bottom: 20px;
    animation-fill-mode: forwards;
    font-weight: 700;
    animation-duration: .5s;
}


.container .content .info .headline{
font-size: 20px;
    line-height: 24px;
    color: #222;
    margin-bottom: 10px;
    animation-delay: .1s;
    animation-fill-mode: forwards;
    font-weight: 700;
}

.container .content .info .alt{
    font-size: 13px;
    line-height: 21px;
    color: grey;
    margin-bottom: 30px;
    animation-delay: .2s;
    animation-fill-mode: forwards;
}

</style>